package cn.xllyd.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mylxx
 * @since 2022-12-11
 */
@TableName("t_order_driver")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDriver extends Model<OrderDriver> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("order_num")
    private String orderNum;
    @TableField("driver_id")
    private Long driverId;
    @TableField("create_date")
    private Date createDate;
    /**
     * 未发布6，未付预付款7、已发布1、已接单0、运输中2、已到达3、已完成4、取消5
     */
    private Integer state;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }



    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderDriver{" +
        ", id=" + id +
        ",  orderNum=" +  orderNum +
        ", driverId=" + driverId +
        ", createDate=" + createDate +
        ", state=" + state +
        "}";
    }
}
